package com.qf.com.qf.like.controller;

import com.qf.com.qf.like.service.GrassLikeService;
import com.qf.common.core.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zdl
 * @date 2025/3/28
 */
@RestController
@RequestMapping("/article")
public class GrassLikeController {

    @Resource
    private GrassLikeService grassLikeService;
    @GetMapping("/like")
    public R<?> like(Integer articleId){
        grassLikeService.like(articleId);
        return R.ok(null);
    }
}
